//
//  LSZLibraryTableViewCell.m
//  JKFuYinProject
//
//  Created by 九酷 on 2017/9/22.
//  Copyright © 2017年 LC. All rights reserved.
//

#import "LSZLibraryTableViewCell.h"

@implementation LSZLibraryTableViewCell
-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.labelTotalTitle = [[UILabel alloc]init];
        self.labelTotalTitle.hidden = YES;
        self.labelTotalTitle.textColor = titleColorLSZ;
        [self addSubview:self.labelTotalTitle];
        
        self.labelTotalTitleNum = [[UILabel alloc]init];
        self.labelTotalTitleNum.textColor = lightColor;
        self.labelTotalTitleNum.hidden = YES;
        [self addSubview:self.labelTotalTitleNum];
        
        self.labelContentTitle = [[UILabel alloc]initWithFrame:CGRectMake(15, 22, ScreenWidth-45, 18)];
        self.labelContentTitle.hidden = YES;
        self.labelContentTitle.font = FONT_14;
        [self addSubview:self.labelContentTitle];

        if (ScreenWidth == 320) {
            //5
            self.labelTotalTitle.font = FONT_(13.5);
            self.labelTotalTitleNum.font = FONT_(12.5);
            self.labelTotalTitle.frame = CGRectMake(20, 5, ScreenWidth-45, 16);
            self.labelTotalTitleNum.frame = CGRectMake(20, CGRectGetMaxY(self.labelTotalTitle.frame)+5, ScreenWidth-45, 14);
        }else if(ScreenWidth == 375){
            // 6 7
            self.labelTotalTitle.font = FONT_(14);
            self.labelTotalTitleNum.font = FONT_(13);
            self.labelTotalTitle.frame = CGRectMake(20, 5, ScreenWidth-45, 18);
            self.labelTotalTitleNum.frame = CGRectMake(20, CGRectGetMaxY(self.labelTotalTitle.frame)+5, ScreenWidth-45, 16);
        }else {
            //plus
            self.labelTotalTitle.font = FONT_(14.5);
            self.labelTotalTitleNum.font = FONT_(13.5);
            self.labelTotalTitle.frame = CGRectMake(20, 5, ScreenWidth-45, 20);
            self.labelTotalTitleNum.frame = CGRectMake(20, CGRectGetMaxY(self.labelTotalTitle.frame)+5, ScreenWidth-45, 18);
        }
    }
    return self;
}
 

@end
